dataSource {
    pooled = true
    driverClassName = "org.postgresql.Driver"
    dialect = org.hibernate.dialect.PostgreSQLDialect
}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
    development {
		dataSource {
//			dbCreate = "create" // one of 'create', 'create-drop','update'
//			dbCreate = "update" // one of 'create', 'create-drop','update'
			dbCreate = "create-drop" // one of 'create', 'create-drop','update'
            url = "jdbc:postgresql://localhost:5432/yoayudo"
            username = "yoayudo"
            password = "yoayudo"
		}
	}
	test {
		dataSource {
			dbCreate = "update"
            url = "jdbc:postgresql://localhost:5432/yoayudo"
            username = "yoayudo"
            password = "yoayudo"
		}
	}
	production {
		dataSource {
			dbCreate = "update"
            url = "jdbc:postgresql://localhost:5432/yoayudo"
            username = "yoayudo"
            password = "yoayudo"
		}
    }
}
